package com.ssmtest.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ssmtest.dao.StudentDao;
import com.ssmtest.pojo.Student;
@Service
public class StudentService {
	@Autowired(required=true)
	private StudentDao studentDao;
	
	public Student getById(Integer id){
		return studentDao.getById(id);
	}

	public List<Student> getAllStu() {
		return studentDao.getAllStu();
	}
}
